package xx.iverson.school_manage.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import xx.iverson.school_manage.service.TitleService;

import javax.annotation.Resource;

/**
 * @author wei77
 */
@Controller
public class TitleController {
    @Resource
    private TitleService titleService;

    // 修改标题
    @RequestMapping("modifyTitle")
    @ResponseBody
    public Boolean modifyTitle(String title,Integer id) {
        return titleService.updateTitle(title, id);
    }
}
